package com.jeff.tianti.cms.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jeff.tianti.common.entity.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "talent_pool")//江苏频道_人才库表
@JsonIgnoreProperties(value={"columnInfo0","columnInfo1","hibernateLazyInitializer","handler","fieldHandler"})
public class TalentPool extends BaseEntity {
    private static final long serialVersionUID = 8999426274116100778L;

    private String talentType;//cms_column_info外键   人才类型，后台可配置  列:行业专家，精英人才
    private ColumnInfo columnInfo0;
    private String talentTypeName;//人才类型名称
    private String typeName;//学科类型名称
    private String type;//cms_column_info外键   学科类型，在cms_column_info中为人才类型的子列表，   例:学术类，实务类，管理类。。。
    private ColumnInfo columnInfo1;
    @Column(name = "url")
    private String url;//专家头像
    @Column(name = "file")
    private String file;//头像file路径
    @Column(name = "name")
    private String name;//专家名称
    @Column(name = "content")
    private String content;//内容，简介
    @Column(name = "sort")
    private int sort;

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getTalentTypeName() {
        return talentTypeName;
    }

    public void setTalentTypeName(String talentTypeName) {
        this.talentTypeName = talentTypeName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Column(name = "talent_type")
    public String getTalentType() {
        return talentType;
    }

    public void setTalentType(String talentType) {
        this.talentType = talentType;
    }

    @ManyToOne(fetch = FetchType.LAZY,optional = false)
    @JoinColumn(name = "talent_type",updatable = false,insertable = false)
    public ColumnInfo getColumnInfo0() {
        return columnInfo0;
    }

    public void setColumnInfo0(ColumnInfo columnInfo0) {
        this.columnInfo0 = columnInfo0;
    }
    @Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @ManyToOne(fetch = FetchType.LAZY,optional = false)
    @JoinColumn(name = "type",updatable = false,insertable = false)
    public ColumnInfo getColumnInfo1() {
        return columnInfo1;
    }

    public void setColumnInfo1(ColumnInfo columnInfo1) {
        this.columnInfo1 = columnInfo1;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
